package stdio.costa.imoca.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@Entity
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class DocumentTemplate extends UuidEntity implements Serializable {

	private static final long serialVersionUID = 1958727008631283984L;
	
	private String name;
	
	private String description;
	
	@XmlTransient
	@Lob
	private byte[] data;

	public DocumentTemplate() {
	}
	
	public DocumentTemplate(String name, String description, byte[] data) {
		this.name = name;
		this.description = description;
		this.data = data;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}
}
